package org.xinjiang.tarim.travel.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.xinjiang.tarim.travel.mapper.TopicImpressionMapper;
import org.xinjiang.tarim.travel.model.TopicImpression;
import org.xinjiang.tarim.travel.service.TopicImpressionService;

import java.util.List;
import java.util.Map;

@Service
public class TopicImpressionServiceImpl implements TopicImpressionService {
    @Autowired
    TopicImpressionMapper topicImpressionMapper;

    @Override
    public List<TopicImpression> insertByList(List<TopicImpression> list) {
        topicImpressionMapper.insertByList(list);
        return list;
    }

    @Override
    public List<TopicImpression> selectByImpressionId(Long impressionId) {
        return topicImpressionMapper.selectByImpressionId(impressionId);
    }

    @Override
    public List<Map> selectHot() {
        return topicImpressionMapper.selectHot();
    }

    @Override
    public List<TopicImpression> selectByTopicId(Long topicId) {
        return topicImpressionMapper.selectByTopicId(topicId);
    }
}
